/**
 * @file 404 页面
 * @date 2025/10/24 12:45:55
 * @author lyqjob@yeah.net
 */

import { useNavigate } from "react-router-dom";
import { Result, Button } from "antd";

export default function NoFoundPage() {
  const navigate = useNavigate();

  return (
    <Result
        status="404"
        title="404"
        subTitle="抱歉，页面出错了。"
        extra={
            <Button
                type="primary"
                onClick={() => navigate('/')}
            >
                返回首页
            </Button>
        }
    />
  )
}